import axiosInstance from '../axiosInstance'

const shopCart = {
    addToShopCart({ fid, count }) {
        return axiosInstance.post('/shopCart/addToShopCart', {
            fid,
            count
        })
    },
    getListByPage({ pageIndex }) {
        return axiosInstance.get('/shopCart/getListByPage', {
            params: {
                pageIndex
            }
        })
    },
    getMyShopCartTotalInfo() {
        return axiosInstance.get('/shopCart/getMyShopCartTotalInfo')
    },
    deleteMyShopCartFoodById(id) {
        return axiosInstance.get('/shopCart/deleteMyShopCartFoodById', {
            params: { id }
        })
    }
}

export default shopCart;